import Request from '@/libs/request'

/**数据展示 查询单个设备的数据 */
export const uSelectDevShowData = (data: {devId: number}) =>
  Request.get<LiveData.DevLiveData>('/user/uSelectDevShowData', data, {noPadding: true})

/**数据展示 单设备水质数据 --所有参数指标详细  --所有参数历史数据 */
export const uSelectHistoryDataByQueryVo = (data: {
  devId: number
  startTime: string
  endTime: string
}) =>
  Request.get<LiveData.LiveDataEchartDataSource>('/user/uSelectHistoryDataByQueryVo', data, {
    noPadding: true
  })
